package net.towee.client.event.core;

import com.google.gwt.event.shared.GwtEvent;

public class ContactRemovedEvent extends GwtEvent<ContactRemovedHandler> {
	public static Type<ContactRemovedHandler> TYPE = new Type<ContactRemovedHandler>();
	private final String accountId;
	private final String groupId;
	
	public ContactRemovedEvent(String idnt, String id) {
		this.accountId = idnt;
		this.groupId = id;
	}

	@Override
	public Type<ContactRemovedHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(ContactRemovedHandler handler) {
		handler.onContactRemoved(accountId, groupId);
	}

}
